package com.itheima.service.impl;

import com.itheima.dao.IMyDao;
import com.itheima.domain.My;
import com.itheima.service.IMyService;

import java.util.List;

public class MyServiceImpl  implements IMyService {
    private IMyDao myDao;

    public void setMyDao(IMyDao myDao) {
        this.myDao = myDao;
    }

    public List<My> findAll() {
        return    myDao.findAll( );
    }

    public void updatebyid(Integer id,Integer id2) {
        myDao.updateById(  id,id2);
    }
}
